/*
 * @Author: yushuaixm
 * @Date: 2022-07-26 17:32:46
 * @LastEditors: yushuaixm
 * @LastEditTime: 2022-07-26 17:46:03
 * @Description: 微信授权
 * @FilePath: /src/api/order.js
 */
const { http } = uni.$zz

export const wxLogin = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/auth/login_by_weixin', params, config)


export const userLogin = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/auth/login_by_user', params, config)


export default {userLogin, wxLogin};